package com.xrtn.mapper;

import com.xrtn.bean.TUserDiseaseRel;
import com.xrtn.bean.TUserPointRel;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface TUserPointRelMapper {
    int deleteByPrimaryKey(Integer relId);

    int deleteByBookingId(Integer bookingId);

    int deleteByUserId(Integer userId);

    int deleteByPatientId(Integer patientId);

    int insert(TUserPointRel record);

    int insertSelective(TUserPointRel record);

    TUserPointRel selectByPrimaryKey(Integer relId);

    int insertBatchUserPoint(@Param("list") List<TUserPointRel> list);

    List<TUserPointRel> selectByBookingIdAndPatientId(Map<String,Object> params);

    List<TUserPointRel> selectPointGroupConcat(Map<String,Object> params);

    int updateByPrimaryKeySelective(TUserPointRel record);

    int updateByPrimaryKey(TUserPointRel record);
}